package nc.bs.pub.action;
import nc.bs.framework.common.NCLocator;
import nc.vo.pub.BusinessException;
import nccloud.commons.lang.StringUtils;
import nc.vo.pub.compiler.PfParameterVO;
import nc.vo.uap.pf.PFBusinessException;
import nc.codeplatform.framework.service.AbstractPfScriptAction;
import nc.vo.mmpsc.mm_pscplanxx.AggMm_pscplanxxVO;
import nc.itf.mmpsc.mm_pscplanxx.mm_pscplanxx.IMm_pscplanxxVOService;

public class N_57E8_SAVEBASE extends AbstractPfScriptAction<AggMm_pscplanxxVO>{
	
	public N_57E8_SAVEBASE(){
		super();
	}
	
	@Override
	protected AggMm_pscplanxxVO[] process(PfParameterVO paraVO) throws BusinessException {
		try {
			IMm_pscplanxxVOService service = NCLocator.getInstance().lookup(IMm_pscplanxxVOService.class);
			AggMm_pscplanxxVO[] vos = (AggMm_pscplanxxVO[])this.getVos();
			
			
			vos = service.callbackSAVEBASE(vos);
			
			return vos;
			
		}catch(Exception ex) {
			if (ex instanceof BusinessException) {
		        throw (BusinessException) ex;
		      }
	        throw new PFBusinessException(ex.getMessage(), ex);
		}
	}
	
}